package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entity.Payment;
import com.atguigu.springcloud.mapper.PaymentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentService {
    @Resource
    PaymentDao paymentDao;

    public Integer create(Payment payment) {
        return paymentDao.create(payment);
    }

    public Payment getPayment(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
